package com.tencent.wxcloudrun.common.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class WeChatConfig {

    public static String wechatMiniAppId;
    public static String wechatMiniSecret;

    @Value("${wechat.mini.appid:''}")
    public void setWechatMiniAppId(String wechatMiniAppId) {
        WeChatConfig.wechatMiniAppId = wechatMiniAppId;
    }

    @Value("${wechat.mini.secret:''}")
    public void setWechatMiniSecret(String wechatMiniSecret) {
        WeChatConfig.wechatMiniSecret = wechatMiniSecret;
    }

}

